package com.yanyan.sannuomin.service.impl;

import com.yanyan.sannuomin.dao.MenuMapper;

import com.yanyan.sannuomin.service.MenuService;
import com.yanyan.sannuomin.vo.MenuVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {
    @Resource
    private MenuMapper menuMapper;
    @Override
    public List<MenuVo> findMenu() {

        return menuMapper.findMenu();
    }

    @Override
    public int delete(Integer menuId) {
        return menuMapper.delete(menuId);
    }
}
